package com.wxb.service;

import com.wxb.domain.MallCartEntity;

import java.util.List;
import java.util.Map;

/**
 * @Date 2025-05-30 10:56
 * @Version 1.0
 * @Description
 * @ClassName IMallCartService
 **/
public interface IMallCartService {
    MallCartEntity queryObject(Integer id);

    List<MallCartEntity> queryList(Map<String, Object> map);

    int queryTotal(Map<String, Object> map);

    void save(MallCartEntity cart);

    void update(MallCartEntity cart);

    void delete(Integer id);

    void deleteBatch(Integer[] ids);

    void updateCheck(String[] productIds, Integer isChecked, Long userId);

    void deleteByProductIds(String[] productIds);

    void deleteByUserAndProductIds(Long userId, String[] productIds);

    void deleteByCart(Long userId, Integer sessionId, Integer checked);
}
